<?php
namespace Api\Controller;
use Think\Controller;
class ProveController extends Controller {
	public function AddProve(){
		$did=I('pe_did');
		$where['pe_did']=$did;




		// if(fd('prove',$where)){
  //         EchoData('',0,102,'您已发送申请！请等待审核');
		// }

		$_POST=UpimgOne($_FILES,'./Public/api/imgs/prove/');
        $string=implode(',', $_POST);
        $_POST['pe_images']=$string;
		$_POST['pe_did']=$did;
		$_POST['pe_ctime']=date('Y-m-d H:i:s',time());
		if(ad('prove',$_POST)){
		  $uinfo=D('Doctor')->toIdGetDoctorInfo($did);
          EchoData($uinfo,1,100,'成功');
		}else{
          EchoData('',0,101,'失败',0);
		};
		
	}
	public function getProveStatus(){
		$did=I('did');
		$where['pe_did']=$did;
		$info=fd('prove',$where,'pe_status');
		if($info){
			EchoData($info['pe_status'],1,100,'成功');
		}else{
			EchoData('',0,101,'失败',0);
		}
	}
}